#include "sort.h"
#include <iostream>
#include <iterator>
#include <vector>
using namespace std;

int main() {
  std::vector<int> v = {1, 5, 2, 3, 7, 2, 8};
  bubble_sort(v);
  std::copy(v.begin(), v.end(), std::ostream_iterator<int>(std::cout, " "));
  std::cout << std::endl;
  return 0;
}